<div class="availablePoll">
    <h3 class="left">${poll}</h3>
    <g:if test="${!expired}">
        <span class="expireText">
          <g:message code="poll.expires" default="Voting expires on" /> <g:formatDate date="${poll?.validUntil}" type="date" locale="${p.userLocale()}" />.<br />
          <g:if test="${!poll.publicPoll}">
              <g:message code="poll.untilUserLimitReached" default="{0} vote(s) still needed." args="${[poll.votesNeeded()]}" />
          </g:if>
        </span>
    </g:if>
    <div class="clear"></div>
    <p>${poll.description} :<br /></p>
    <div class="radioOptions">
        <g:each var="option" status="i" in="${poll.sortedOptions()}">
            ${option}
            <div class="pollBar bar${i%10}" style="width:${poll.distribution(option)*100}%"><span style="padding-left:50%">
                <g:formatNumber number="${poll.distribution(option)}" locale="${p.userLocale()}" type="percent" maxFractionDigits="2" minFractionDigits="2" />
            </span></div><br />
        </g:each>
    </div>
    <div class="pollParticipants">
        <g:message code="poll.voteCount" default="Votes" />: ${poll.votes.size()}
    </div>
</div>